import http from './http'

export const getFolderTree = (param) => {
  return http({
    url: '/folder/tree',
    method: 'get',
    params: param
  })
}

export const postFolder = (obj) => {
  return http({
    url: '/folder',
    method: 'post',
    data: obj
  })
}

export const putFolder = (obj) => {
  return http({
    url: '/folder',
    method: 'put',
    data: obj
  })
}

export const delFolder = (obj) => {
  return http({
    url: '/folder',
    method: 'delete',
    data: obj
  })
}